﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;

namespace WaterRevenueMS.Componnent.Data.Mapping.ReadMeterMS
{
    partial class TaskTempletMap
    {
        partial void TaskTempletMapAppend()
        {
            this.HasKey(t => t.Id);
            this.Property(t => t.Ren_WMC)
                .HasMaxLength(16);
            this.ToTable("Chao_BRWMB");
            this.Property(t => t.Id).HasColumnName("Chao_BRWMB_ID")
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);

            this.HasOptional(t => t.Area).WithMany(d => d.TaskTemplets).HasForeignKey(t => t.Qu_YSZ_No);
            this.HasOptional(t => t.MeterBook).WithMany(d => d.TaskTemplets).HasForeignKey(t => t.Biao_CSZ_No);
            this.HasOptional(t => t.MeterReader).WithMany(d => d.TaskTemplets).HasForeignKey(t => t.Chao_BY_No);

        }
    }
}
